<template>
  <div class="cart-list">
    <CartListItem
      v-for="(item, index) in getCartList"
      :key="index"
      :itemInfo="item"
    />
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import CartListItem from "./CartListItem";

export default {
  components: {
    CartListItem,
  },
  computed: {
    ...mapGetters(["getCartList"]),
  },
  data() {
    return {
      counter: 0
    }
  },
};
</script>

<style scoped>
.cart-container {
  display: flex;
  padding: 5px 5px;
}
.cart-img img {
  height: 100px;
}
</style>